﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TinyERP.Framework.Controls
{
    public class BaseDialog: BaseForm, IDialog
    {

        public event NeedReloadDataHandler OnNeedReloadData;

        public virtual string GetHeaderText()
        {
            return "untitled";
        }

        public virtual IButtonControl GetAcceptButton()
        {
            return null;
        }

        public virtual IButtonControl GetCancelButton()
        {
            return null;
        }

        protected void InvokeOnNeedReloadData()
        {
            if (OnNeedReloadData != null)
            {
                OnNeedReloadData(this);
            }
        }
        

    }
}
